import request from '@/utils/request'
// 获取表格数据
export function getTabelList(data){
    return request({
        url:'/course/list',
        method:'post',
        data
    })
}
//新增课程
export function addTabelCourse(data){
    return request({
        url:'/course/add',
        method:'post',
        data
    })
}
//更新课程
export function putTabelCourse(data){
    return request({
        url:'/course/update',
        method:'put',
        data
    })
}
//删除课程
export function dltTabelCourse(id){
    return request({
        url:`/course/delete/${id}`,
        method:'delete',
    })
}

// 下拉框接口
export function cxTabelCourse(id){
    return request({
        url:`/dictionary/query/${id}`,
    })
}